<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Release 8.2.18</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REV="MADE"
HREF="mailto:pgsql-docs@postgresql.org"><LINK
REL="HOME"
TITLE="PostgreSQL 9.1.2 Documentation"
HREF="index.html"><LINK
REL="UP"
TITLE="Release Notes"
HREF="release.html"><LINK
REL="PREVIOUS"
TITLE="Release 8.2.19"
HREF="release-8-2-19.html"><LINK
REL="NEXT"
TITLE="Release 8.2.17"
HREF="release-8-2-17.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="stylesheet.css"><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=ISO-8859-1"><META
NAME="creation"
CONTENT="2011-12-01T22:07:59"></HEAD
><BODY
CLASS="SECT1"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="5"
ALIGN="center"
VALIGN="bottom"
><A
HREF="index.html"
>PostgreSQL 9.1.2 Documentation</A
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
TITLE="Release 8.2.19"
HREF="release-8-2-19.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
HREF="release.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="60%"
ALIGN="center"
VALIGN="bottom"
>Appendix E. Release Notes</TD
><TD
WIDTH="20%"
ALIGN="right"
VALIGN="top"
><A
TITLE="Release 8.2.17"
HREF="release-8-2-17.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="RELEASE-8-2-18"
>E.45. Release 8.2.18</A
></H1
><DIV
CLASS="NOTE"
><BLOCKQUOTE
CLASS="NOTE"
><P
><B
>Release Date: </B
>2010-10-04</P
></BLOCKQUOTE
></DIV
><P
>   This release contains a variety of fixes from 8.2.17.
   For information about new features in the 8.2 major release, see
   <A
HREF="release-8-2.html"
>Section E.63</A
>.
  </P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN116699"
>E.45.1. Migration to Version 8.2.18</A
></H2
><P
>    A dump/restore is not required for those running 8.2.X.
    However, if you are upgrading from a version earlier than 8.2.14,
    see the release notes for 8.2.14.
   </P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN116702"
>E.45.2. Changes</A
></H2
><P
></P
><UL
><LI
><P
>      Use a separate interpreter for each calling SQL userid in PL/Perl and
      PL/Tcl (Tom Lane)
     </P
><P
>      This change prevents security problems that can be caused by subverting
      Perl or Tcl code that will be executed later in the same session under
      another SQL user identity (for example, within a <TT
CLASS="LITERAL"
>SECURITY
      DEFINER</TT
> function).  Most scripting languages offer numerous ways that
      that might be done, such as redefining standard functions or operators
      called by the target function.  Without this change, any SQL user with
      Perl or Tcl language usage rights can do essentially anything with the
      SQL privileges of the target function's owner.
     </P
><P
>      The cost of this change is that intentional communication among Perl
      and Tcl functions becomes more difficult.  To provide an escape hatch,
      PL/PerlU and PL/TclU functions continue to use only one interpreter
      per session.  This is not considered a security issue since all such
      functions execute at the trust level of a database superuser already.
     </P
><P
>      It is likely that third-party procedural languages that claim to offer
      trusted execution have similar security issues.  We advise contacting
      the authors of any PL you are depending on for security-critical
      purposes.
     </P
><P
>      Our thanks to Tim Bunce for pointing out this issue (CVE-2010-3433).
     </P
></LI
><LI
><P
>      Prevent possible crashes in <CODE
CLASS="FUNCTION"
>pg_get_expr()</CODE
> by disallowing
      it from being called with an argument that is not one of the system
      catalog columns it's intended to be used with
      (Heikki Linnakangas, Tom Lane)
     </P
></LI
><LI
><P
>      Fix Windows shared-memory allocation code
      (Tsutomu Yamada, Magnus Hagander)
     </P
><P
>      This bug led to the often-reported <SPAN
CLASS="QUOTE"
>"could not reattach to shared
      memory"</SPAN
> error message.  This is a back-patch of a fix that was
      applied to newer branches some time ago.
     </P
></LI
><LI
><P
>      Treat exit code 128 (<TT
CLASS="LITERAL"
>ERROR_WAIT_NO_CHILDREN</TT
>) as non-fatal on
      Windows (Magnus Hagander)
     </P
><P
>      Under high load, Windows processes will sometimes fail at startup with
      this error code.  Formerly the postmaster treated this as a panic
      condition and restarted the whole database, but that seems to be
      an overreaction.
     </P
></LI
><LI
><P
>      Fix possible duplicate scans of <TT
CLASS="LITERAL"
>UNION ALL</TT
> member relations
      (Tom Lane)
     </P
></LI
><LI
><P
>      Fix <SPAN
CLASS="QUOTE"
>"cannot handle unplanned sub-select"</SPAN
> error (Tom Lane)
     </P
><P
>      This occurred when a sub-select contains a join alias reference that
      expands into an expression containing another sub-select.
     </P
></LI
><LI
><P
>      Reduce PANIC to ERROR in some occasionally-reported btree failure cases,
      and provide additional detail in the resulting error messages
      (Tom Lane)
     </P
><P
>      This should improve the system's robustness with corrupted indexes.
     </P
></LI
><LI
><P
>      Prevent show_session_authorization() from crashing within autovacuum
      processes (Tom Lane)
     </P
></LI
><LI
><P
>      Defend against functions returning setof record where not all the
      returned rows are actually of the same rowtype (Tom Lane)
     </P
></LI
><LI
><P
>      Fix possible failure when hashing a pass-by-reference function result
      (Tao Ma, Tom Lane)
     </P
></LI
><LI
><P
>      Take care to fsync the contents of lockfiles (both
      <TT
CLASS="FILENAME"
>postmaster.pid</TT
> and the socket lockfile) while writing them
      (Tom Lane)
     </P
><P
>      This omission could result in corrupted lockfile contents if the
      machine crashes shortly after postmaster start.  That could in turn
      prevent subsequent attempts to start the postmaster from succeeding,
      until the lockfile is manually removed.
     </P
></LI
><LI
><P
>      Avoid recursion while assigning XIDs to heavily-nested
      subtransactions (Andres Freund, Robert Haas)
     </P
><P
>      The original coding could result in a crash if there was limited
      stack space.
     </P
></LI
><LI
><P
>      Fix <TT
CLASS="VARNAME"
>log_line_prefix</TT
>'s <TT
CLASS="LITERAL"
>%i</TT
> escape,
      which could produce junk early in backend startup (Tom Lane)
     </P
></LI
><LI
><P
>      Fix possible data corruption in <TT
CLASS="COMMAND"
>ALTER TABLE ... SET
      TABLESPACE</TT
> when archiving is enabled (Jeff Davis)
     </P
></LI
><LI
><P
>      Allow <TT
CLASS="COMMAND"
>CREATE DATABASE</TT
> and <TT
CLASS="COMMAND"
>ALTER DATABASE ... SET
      TABLESPACE</TT
> to be interrupted by query-cancel (Guillaume Lelarge)
     </P
></LI
><LI
><P
>      In PL/Python, defend against null pointer results from
      <CODE
CLASS="FUNCTION"
>PyCObject_AsVoidPtr</CODE
> and <CODE
CLASS="FUNCTION"
>PyCObject_FromVoidPtr</CODE
>
      (Peter Eisentraut)
     </P
></LI
><LI
><P
>      Improve <TT
CLASS="FILENAME"
>contrib/dblink</TT
>'s handling of tables containing
      dropped columns (Tom Lane)
     </P
></LI
><LI
><P
>      Fix connection leak after <SPAN
CLASS="QUOTE"
>"duplicate connection name"</SPAN
>
      errors in <TT
CLASS="FILENAME"
>contrib/dblink</TT
> (Itagaki Takahiro)
     </P
></LI
><LI
><P
>      Fix <TT
CLASS="FILENAME"
>contrib/dblink</TT
> to handle connection names longer than
      62 bytes correctly (Itagaki Takahiro)
     </P
></LI
><LI
><P
>      Add <CODE
CLASS="FUNCTION"
>hstore(text, text)</CODE
>
      function to <TT
CLASS="FILENAME"
>contrib/hstore</TT
> (Robert Haas)
     </P
><P
>      This function is the recommended substitute for the now-deprecated
      <TT
CLASS="LITERAL"
>=&gt;</TT
> operator.  It was back-patched so that future-proofed
      code can be used with older server versions.  Note that the patch will
      be effective only after <TT
CLASS="FILENAME"
>contrib/hstore</TT
> is installed or
      reinstalled in a particular database.  Users might prefer to execute
      the <TT
CLASS="COMMAND"
>CREATE FUNCTION</TT
> command by hand, instead.
     </P
></LI
><LI
><P
>      Update build infrastructure and documentation to reflect the source code
      repository's move from CVS to Git (Magnus Hagander and others)
     </P
></LI
><LI
><P
>      Update time zone data files to <SPAN
CLASS="APPLICATION"
>tzdata</SPAN
> release 2010l
      for DST law changes in Egypt and Palestine; also historical corrections
      for Finland.
     </P
><P
>      This change also adds new names for two Micronesian timezones:
      Pacific/Chuuk is now preferred over Pacific/Truk (and the preferred
      abbreviation is CHUT not TRUT) and Pacific/Pohnpei is preferred over
      Pacific/Ponape.
     </P
></LI
><LI
><P
>      Make Windows' <SPAN
CLASS="QUOTE"
>"N. Central Asia Standard Time"</SPAN
> timezone map to
      Asia/Novosibirsk, not Asia/Almaty (Magnus Hagander)
     </P
><P
>      Microsoft changed the DST behavior of this zone in the timezone update
      from KB976098. Asia/Novosibirsk is a better match to its new behavior.
     </P
></LI
></UL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="release-8-2-19.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="release-8-2-17.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Release 8.2.19</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="release.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Release 8.2.17</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>